package modelo.bd;

public class Configuracion {

    private String usuario;
    private String contrasenia;
    private String servidor;
    private String puerto;
    private String esquema;
    private String driver;
    private String url;

    public Configuracion() {
        //this.usuario = "SSYMA";
        //this.contrasenia = "SSYMA";
        //this.servidor = "TPZWBD01";
        //this.puerto = "1433";
        this.esquema = (new java.io.File("")).getAbsolutePath() + "\\DB.accdb";
        this.driver = "sun.jdbc.odbc.JdbcOdbcDriver";
        this.url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="+esquema;
    }
    
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContrasenia() {
        return contrasenia;
    }

    public void setContrasenia(String contrasenia) {
        this.contrasenia = contrasenia;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getEsquema() {
        return esquema;
    }

    public void setEsquema(String esquema) {
        this.esquema = esquema;
    }

    public String getPuerto() {
        return puerto;
    }

    public void setPuerto(String puerto) {
        this.puerto = puerto;
    }

    public String getServidor() {
        return servidor;
    }

    public void setServidor(String servidor) {
        this.servidor = servidor;
    }

    public String getUsuario() {
        return usuario;
    }

    public void setUsuario(String usuario) {
        this.usuario = usuario;
    }

    @Override
    public String toString() {
        return this.servidor+" "+this.url+"@"+this.usuario+"@"+this.contrasenia+"@"+this.driver;
    }
}
